package com.qing.expert.modules.goods.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@TableName("goods")
public class Goods {

    @TableId(type = IdType.ASSIGN_ID)
    private String goodsId;

    private String title;

    private String description;

    private BigDecimal price;

    private String coverImage;

    private Integer status;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}